package com.carsystem.excelutil;

import java.io.File;

/**
 * @Author zw
 * @Description 公共常量类
 * @Date 2021/9/7 16:22
 * @Param
 * @return
 **/

public class CommonConstant {
    //平台id
    public final static Long PALT_ID = 1L;
    //锁判断key
    public final static String LOCK_KEY = "LockKey_";
    //结算日期（T+14）
    public final static Integer SHARE_DAY = 14;
    //查询时一次处理的条数
    public final static Integer SEARCH_NUM = 1000;
    //账户类型company
    public final static String ACCOUNT_TYPE_COM = "company";
    public final static String ACCOUNT_TYPE_PER = "person";
    //账户状态
    public final static Integer ACCOUNT_STATE_SUCCESS = 1;
    public final static Integer ACCOUNT_STATE_STOP = 2;
    public final static Integer ACCOUNT_STATE_FREEZE = 3;

    //分账人员类型
    public final static String PLAT_SHARE_ACCOUNT = "plat";
    public final static String GROUP_SHARE_ACCOUNT = "group";
    public final static String PERSON_SHARE_ACCOUNT = "person";
    public final static String PRODUCER_SHARE_ACCOUNT = "producer";
    public final static String PLAT_GROUP_SHARE_ACCOUNT = "platGroup";
    public final static String PLAT_PERSON_SHARE_ACCOUNT = "platPerson";

    //设置全局所超时时间
    public final static Long GLOBAL_LOCK_TIME = 1000L;

    // 后台管理
    /**
     * 登录系统用户权限列表缓存前缀
     */
    public static final String PREFIX_SYS_USER_AUTH = "pxm:cache:prefix_sys_user_auth_";

    /**
     * 登录供应商用户权限列表缓存前缀
     */
    public static final String PREFIX_SUPPLIER_USER_AUTH = "pxm:cache:prefix_supplier_auth_";

    public final static String LINUX_DOWNLOAD_PATH = File.separator + "usr" + File.separator + "local" + File.separator + "pxm" +
            File.separator + "file" + File.separator + "account" + File.separator;
    public final static String WINDOW_DOWNLOAD_PATH = "E:" + File.separator + "excel" + File.separator + "account" + File.separator;
    public final static String LINUX_DOWNLOAD_PATH_TEMPLATE = File.separator + "usr" + File.separator + "local" + File.separator + "pxm" +
            File.separator + "file" + File.separator + "template" + File.separator + "account" + File.separator;
    public final static String WINDOW_DOWNLOAD_PATH_TEMPLATE = "E:" + File.separator + "excel" + File.separator + "template" + File.separator + "account" + File.separator;
}
